package top.shiyiri.spring5;

/**
 * @author Aunean
 * @date 2022/2/16 17:33
 */

/*
    演示使用 set 方法进注入属性
 */
public class Book {
    //创建属性
    private String bname;
    private String bauthor;
    private String address;

    public void setBname(String bname) {
        this.bname = bname;
    }

    public void setBauthor(String bauthor) {
        this.bauthor = bauthor;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public void testDemo() {
        System.out.println(bname + " : " + bauthor + ":" + address);
    }
}
